package com.huangsm.book.designmodel.parallel.invariability;


import lombok.Getter;

/**
 * 不变模式类
 * @author huang
 * @date 2019/2/19
 */
@Getter
public final class Product {
    private final String no;
    private final String name;
    private final double price;

    public Product(String no, String name, double price) {
        //在创建对象时，必须指定数据
        //因为创建之后，无法进行修改
        super();
        this.no = no;
        this.name = name;
        this.price = price;
    }
}
